/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.vo;

import com.arisgo.cloud.web.model.NumberIdWithTenantId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * TODO 此类有问题
 * @author xu keqi
 * @since 2025-01-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班次详情")
public class ClassInfoDetailVo extends NumberIdWithTenantId {
    /**
     * 班id
     */
    @Schema(name = "classId", description = "班id")
    private Long classId;
    /**
     * 班组
     */
    @Schema(name = "groupId", description = "班组")
    private Long groupId;
    /**
     * 日期
     */
    @Schema(name = "workDate", description = "日期")
    private LocalDate workDate;

    /**
     * 备注
     */
    @Schema(name = "remark", description = "备注")
    private String remark;

    /**
     * 颜色
     */
    @Schema(name = "color", description = "颜色")
    private String color;

    /**
     * 工时类型 0/标准工时制 1/综合工时制 2/不定时工时制
     */
    @Schema(name = "type", description = "工时类型 0/标准工时制 1/综合工时制 2/不定时工时制")
    private Integer type;

    /**
     * 名称
     */
    @Schema(name = "name", description = "班次名称")
    private String name;

    /**
     * 简称
     */
    @Schema(name = "shortName", description = "简称")
    private String shortName;

    /**
     * 时长
     */
    @Schema(name = "duration", description = "时长")
    private Integer duration;

    /**
     * 开始时间
     */
    @Schema(name = "startTime", description = "开始时间")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @Schema(name = "endTime", description = "结束时间")
    private LocalTime endTime;


    /**
     * 开始时间
     */
    @Schema(name = "restStartTime", description = "休息开始时间")
    private LocalTime restStartTime;

    /**
     * 结束时间
     */
    @Schema(name = "restEndTime", description = "休息结束时间")
    private LocalTime restEndTime;

    /**
     * 员工数量
     */
    @Schema(name = "staffs", description = "员工数量")
    private Integer staffs;
}
